package com.hx.jvm.jvm.oom;

import java.util.ArrayList;
import java.util.List;

/**
 * @author MinghuaChen
 * @date 2022-03-05 12:04
 * @description
 */
public class HeadTest {

    public byte[] bytes = new byte[1024 * 100];

    public static void main(String[] args) throws InterruptedException {
        List<HeadTest> list = new ArrayList<>();
        while (true) {
            list.add(new HeadTest());
            System.out.println("添加对象");
            Thread.sleep(10);
        }
    }
}
